package com.jiangyg.mall.product.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 类描述：
 *
 * @author jiangyg
 * @date 2021-11-13
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
public class SkuAddDTO implements Serializable {

    private static final long serialVersionUID = -1963287843081568690L;

    /**
     * spuId
     */
    @NotNull
    private Long spuId;

    /**
     * 品牌id
     */
    @NotNull
    private Long brandId;

    /**
     * 所属分类id
     */
    @NotNull
    private Long categoryId;

    /**
     * 销售属性
     */
    @NotNull
    private List<SkuSaveDTO> skus;


}
